<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
    <title>代理收益</title>
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/dailishouyi.css">
    <script src="../../js/jquery-2.2.3.min.js"></script>
    <script src="../../js/rem.js"></script>
    <script src="../../js/common.js"></script>
    <script type="text/javascript" src="../../js/vue.js"></script>
    <script type="text/javascript" src="../../js/vue-resource.min.js"></script>
</head>
<body style="background-color: #F5F5F5">
<div id="app">
    <div class="head">
        <a href="javascript:history.back(-1)">
            <div class="h-left"></div>
        </a>
        <div class="h-middle">代理收益</div>
        <div class="h-right"></div>
    </div>
    <div style="height: .44rem;"></div>
    <div  v-for="item in list">
        <p class="c-p createTime">{{item.createTime.substring(0,10)}}</p>
        <div class="container">

            <div class="c-item">
                <p class="c-i-p1">代理获得奖励</p>
                <p class="c-i-p2 dlhdjl">{{item.avgReward}}</p>
            </div>
            <div class="c-item">
                <p class="c-i-p1">代理人数</p>
                <p class="c-i-p2">{{item.totalAgentNum}}</p>
            </div>
            <div class="c-item">
                <p class="c-i-p1">总营业额</p>
                <p class="c-i-p2">{{item.totalReward}}</p>
            </div>
            <div class="c-item">
                <p class="c-i-p1">总分红额度</p>
                <p class="c-i-p2">{{item.agentRewardRate*item.totalReward}}</p>
            </div>
        </div>
    </div>

</div>

    <script>
        new Vue({
            el:'#app',
            data: {
                list: [],
                pageNum: 1
            },
            mounted: function () {
                this.$http.post(SURL + '/jfd/logRewarcash/getLogRewarcashList',{pageNum:this.pageNum},{emulateJSON: true}).then(function(res) {
                    var _data = res.data.data.logRewarcashList;
                    this.list = _data;
                    console.log(res.data.data.logRewarcashList[0].createTime);
                })
            }
        })
    </script>
</body>
</html>
